package cn.tedu.spring.scope;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-08-02 17:47
 * @since jdk1.8
 */
public class OrderTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.scope");
        Order order1 = context.getBean("order", Order.class);
        Order order2 = context.getBean("order", Order.class);
        System.out.println(order1);
        System.out.println(order2);
    }
}
